<#--
 * message
 *
 * Get message from i18n configuration file. 
 * see https://svn.apache.org/repos/asf/qpid/tags/pre-M1/java/java/management/core/lib/spring/spring.ftl
 * and 
 * http://stackoverflow.com/questions/15041632/spring-mvc-freemarker-using-a-message-from-a-bundle-in-a-freemarker-expression
 *
 * @param message the key in the configuration file
 * @param text default text
-->
<#function message code text=''>
    <#if text != ''>
        <#return springMacroRequestContext.getMessage(code, text)>
    <#else>
        <#return springMacroRequestContext.getMessage(code)>
    </#if>
</#function>